package com.example.models;

import io.ebean.ExpressionList;
import io.ebean.Finder;
import io.ebean.Model;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "education")
@Data
public class Education extends Model {
    @Id
    public Integer id;
    public String eduName;
    public String province;
    public String city;
    public Boolean deleted = false;

    public static Finder<Integer, Education> find = new Finder<>(Education.class);

    public static ExpressionList<Education> search() {
        return Education.find.query().where();
    }
}
